package com.weibo4j.api.response.account;

import com.weibo4j.api.WeiboResponse;

public class AccountUidResponse extends WeiboResponse<Long>{

	private Long model;


    @Override
    public Long getModel() {
        if (success && model == null) {
            isSuccess();
        }
        return model;
    }

    @Override
    public boolean isSuccess() {
        boolean isSuccess = super.isSuccess();
        if (isSuccess && model == null) {
            model = result.getLong("uid");
        }
        return isSuccess;
    }

}
